#ifndef CFOOTBALLTEAM_H
#define CFOOTBALLTEAM_H

#include "CFootballField.h"
#include "CFootballPlayer.h"
#include "CFootballKeeper.h"
#include "CFootballOutfieldPlayer.h"

#include <iostream>
#include <string>
#include <math.h>

#define CONST_MAX_PLAYER 11

class CFootballTeam
{
public:
	CFootballTeam(void);
	CFootballTeam(std::string _Name);
	CFootballTeam(CFootballTeam* _Team);
	CFootballTeam(std::string _Name, CFootballTeam* _EnemyTeam);
	~CFootballTeam(void);

	CFootballKeeper* GetKeeper(void);
	CFootballPlayer* GiveBallRandomPlayer(void);
	CFootballPlayer* GiveBallNextPlayer(CFootballPlayer* _Player);
	
	std::string GetName(void);

	// true:  intercepted
	// false: not intercepted
	bool Intercept(void);
	
	void IncrementScore(void);
	int GetScore(void);

private:
	int m_Score;
	std::string m_Name;
	CFootballPlayer* m_pPlayer[CONST_MAX_PLAYER];
};

#endif // #CFOOTBALLTEAM_H